﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JeuDeDames_v1._02
{
    [Serializable]
    public class CaseN : Case
    {

        #region Propriétés
        public int pos;
        public Piece piece; 
        #endregion

        #region Constructeurs
        public CaseN(int i) : this(i, null) { }

        public CaseN(int i, Piece pion)
        {
            this.pos = i;
            this.piece = pion;
        }
        #endregion

        #region Méthodes
        public bool vide()
        {
            return (this.piece == null);
        }

        public override string ToString()
        {
            if (piece != null)
                return piece.ToString();
            else
                return " ";
        } 
        #endregion
    }
}
